import router from "@/router";
import { toast } from "vant";
import { manuals,manual} from "@/server/explain";
import { setStorage, setSession, removeStorage } from "@/utils/common";
export default {
  state: () => ({}),
  mutations: {},
  actions: {
    manuals({commit},data){
        return new Promise((resolve,reject)=>{
            manuals(data).then(res=>{
                if(res.code==0){
                    resolve(res.data)
                }
            })
        })
    },
    manual({commit},data){
        return new Promise((resolve,reject)=>{
            manual(data).then(res=>{
                if(res.code==0){
                    resolve(res.data)
                }
            })
        })
    }
  },
  getters: {},
};